{php}
$header_background_image='/report/images/top_logo_banner.gif';
$this->assign('header_background_image', $header_background_image);

$js_url = $this->_tpl_vars['js_url'];
$theme_js_url = $this->_tpl_vars['theme_js_url'];
$css_url = $this->_tpl_vars['css_url'];

BizSystem::clientProxy()->appendScripts("Openbiz.FolderTree","Openbiz.FolderTree.js");

$includedScripts = BizSystem::clientProxy()->getAppendedScripts();
if(strtolower(FusionChartVersion)=="pro"){
	$includedScripts.="\n".'<script type="text/javascript" src="'.RESOURCE_URL.'/report/js/FusionChartsPro/FusionCharts.js"></script>';
	$includedScripts.="\n".'<script type="text/javascript" src="'.RESOURCE_URL.'/report/js/FusionChartsPro/FusionChartsExportComponent.js"></script>';
	$includedScripts.="\n".'<script type="text/javascript" src="'.RESOURCE_URL.'/report/js/FusionChartsPro/FusionChartsExport.js"></script>';
}else{
	$includedScripts.="\n".'
	<script type="text/javascript" src="'.RESOURCE_URL.'/report/js/FusionCharts/FusionCharts.js"></script>
	<script type="text/javascript" >forceSelectRecord=true;</script>
	';
}
$this->_tpl_vars['scripts'] = $includedScripts;
$appendStyle = BizSystem::clientProxy()->getAppendedStyles();
$this->_tpl_vars['style_sheets'] = $appendStyle;

$left_menu = "report.map.form.ReportMapTree";
$this->assign('left_menu', $left_menu);
$this->assign('hidden_appbuilder', 1);
$this->assign('report_id', $_GET['fld:Id']);

{/php}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<meta name="description" content="{$description}"/>
<meta name="keywords" content="{$keywords}"/>
<link rel="stylesheet" href="{$css_url}/general.css" type="text/css" />
<link rel="stylesheet" href="{$css_url}/system_backend.css" type="text/css" />
<link rel="stylesheet" href="{$css_url}/system_backend_tabs.css" type="text/css" />
<link rel="stylesheet" href="{$css_url}/system_menu_icons.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$js_url}/jstree/tree_component.css" />
{$style_sheets}
{$scripts}
<script type="text/javascript" src="{$js_url}/jstree/_lib.js"></script>
<script type="text/javascript" src="{$js_url}/jstree/tree_component.js"></script>
<script type="text/javascript" src="{$theme_js_url}/general_ui.js"></script>
<script type="text/javascript" src="{$js_url}/cookies.js"></script>
<script type="text/javascript" src="{$js_url}/jquery-ui-1.8.12.custom.min.js"></script>
<script>$j=jQuery.noConflict();</script>
<script>var charts = new Array();
		var reportId = "{$report_id}";
</script>

</head>

<body>
<div align="center" id="body_warp">
	<div id="header_warp">
	{include file='system_header.tpl.html'}
	</div>
	<!--main warp-->
	<div id="main_warp">	
		<!--main-->
		<div id="main" >
			
			{include file='system_loader.tpl.html'}
				<table id="main_content" border="0" cellpadding="0" cellspacing="0">
					<tr><td><img src="{$image_url}/spacer.gif" style="height:15px;" /></td></tr>
					<tr>
						<td valign="top" style="width:18px;"><img src="{$image_url}/spacer.gif" style="width:18px;" /></td>
						<td valign="top" id="left_panel">
								<!-- left menu block start -->								

								<div class="content_block">
									<div class="header"></div>
									<div class="content_tree" >		
									{php}
									$left_menu = $this->_tpl_vars['left_menu'];
									$obj = Bizsystem::GetObject($left_menu);
									$left_menu_content = $obj->render();
									$this->assign('system_left_menu_content', 	$left_menu_content);
									{/php}																	
										{$system_left_menu_content}
									</div>
									<div class="footer"></div>						
								</div>
								<!-- left menu block end -->	
								
						</td>
						<td valign="top" id="right_panel">
							<!-- right block start -->
							<div class="content_block">
								<div class="header"></div>
								<div class="content">	
									<div>

														
									{foreach key=formname item=form from=$forms}	
								    	{if $formname !='help.form.HelpBlockForm' and  
								    		$formname !='report.folder.form.FolderTree' and
								    		'/^menu\.widget\..*Menu$/si'|preg_match:$formname eq 0}							    
								         	<div>
								         	{$form}
								         	</div>
								       {/if}
								    {/foreach}	
								    	
									</div>									
								</div>
								<div class="footer"></div>														
							</div>
							<!-- right block end -->
						</td>
					</tr>
			  </table>		  
			</div>
			<!--main-->
		
		</div>		
		<!--main wrap end-->
		<!--footer-->
		<div  id="footer_warp">			
 		{include file='system_footer.tpl.html'}
		</div>
		<!-- footer end -->
	
	</div>
</div>

{literal}
<script>
$('main_loader_bg').style.height = $('main_content').offsetHeight+'px';
</script>
{/literal}
</body>
</html>